//
// Created by kero-ly on 2020/6/13.
//

#ifndef CLION_UTILS_H
#define CLION_UTILS_H

#include <iostream>
#include <chrono>
#include <vector>
using namespace std::chrono;

class timer {
public:
    timer() = default;
    ~timer() = default;
    timer(timer& t) = delete;
    timer& operator=(timer& t) = delete;
    timer(timer&&) = delete;
    timer& operator=(timer&&) = delete;

    void tic();
    void toc();

private:
    steady_clock::time_point t1;
    steady_clock::time_point t2;
};

#endif //CLION_UTILS_H
